package com.psp.sp.controller.springmvc.req;


import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Size;
import javax.validation.constraints.Pattern;

/**
 * 修改用户信息
 **/
public class UpdateUserParam {
	private String token; // token
	@NotEmpty(message = "名字不能为空！")
	@Size(min = 2, max = 6, message = "null")
	private String name; // 新名字
	private String headIcon; // 头像
	private String idNo; // 身份证号
	@Pattern(regexp = "^1|2$", message = "类型不正确，1男2女")
	private String gender; // 性别：1男2女

	public void setToken(String token) {
 		this.token = token;
	}

	public String getToken() {
 		return token;
	}

	public void setName(String name) {
 		this.name = name;
	}

	public String getName() {
 		return name;
	}

	public void setHeadIcon(String headIcon) {
 		this.headIcon = headIcon;
	}

	public String getHeadIcon() {
 		return headIcon;
	}

	public void setIdNo(String idNo) {
 		this.idNo = idNo;
	}

	public String getIdNo() {
 		return idNo;
	}

	public void setGender(String gender) {
 		this.gender = gender;
	}

	public String getGender() {
 		return gender;
	}

}
